<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Home
 *
 * @author BABAI
 */
class Admin_Login extends Controller{
    function __construct() {
        parent::__construct();
        $this->home_model = new Home_model();
        $command = $_POST['command'];
        if($command=='add'){
            $this->add();
        }
        else{
            $this->index();
        }
    }
    function index(){
        //echo "hello";
        $user = $this->home_model->getUsers();
        //echo $this->db->last_query;
        
        $this->view("admin/header");
        $this->view("admin/menu");
        $this->view("admin/login");
        $this->view("admin/footer");
        //pr($user,false);
        //pr($this, false);
        
    }
    function add(){
        
    }
}

?>
